names = ['liling','aiyinsitang','bieduofen','wangxue','chengao']
print("The first three items in the list are:")
print(names[0:3])
print("\nThree items from the middle of the list are:")
print(names[1:4])
print("\nThe last three items in the list are:")
print(names[-3:])